package com.itcms.core.service;

import java.util.Collection;
import java.util.List;
import java.util.Set;

import com.itcms.core.domain.Attachment;
import com.itcms.core.domain.AttachmentRef;

public interface AttachmentRefService {
	public void update(Set<String> urls, String ftype, Integer fid);
	
	public AttachmentRef save(String ftype, Integer fid, Attachment attachment);

	public void delete(String ftype, Integer fid);

	public int deleteBySiteId(Collection<Integer> siteIds);
	
	public List<AttachmentRef> findByFtypeAndFid(String ftype, Integer fid);
}
